import com.lucifer.TestDefault;

import java.util.ArrayList;
import java.util.Collections;

/**
 * 实现TestDefault接口
 *
 * @author yuxiao
 * @create 2016-06-29 下午3:14
 */

public class Second implements TestDefault{


  public static void main(String[] args){
    Second second = new Second();
    ArrayList<String> list = new ArrayList<>();
    list.add("a");
    list.add("b");
    list.add("c");
    list.add("d");

    second.print(list);
    System.out.println(second.num(list));
  }

  @Override
  public void print(ArrayList<?> list) {
    for (Object o : list) {
      System.out.println(o);
    }
  }
}
